import request from "@/utils/http";


export const list = (current, size, params) => {
    return request({
        url: '/api/blade-basic/app/driverInfo/list?current=1&size=-1',
    })
}

export const getDetail = (id) => {
    return request({
        url: `/api/blade-basic/app/driverInfo/detail?id=${id}`,
        method: 'get',
    })
}

export const remove = (ids) => {
    return request({
        url: `/api/blade-basic/app/driverInfo/remove?ids=${ids}`,
        method: 'post',
    })
}

export const add = (row) => {
    return request({
        url: '/api/blade-basic/app/driverInfo/submit',
        method: 'post',
        data: row
    })
}

export const update = (row) => {
    return request({
        url: '/api/blade-basic/app/driverInfo/submit',
        method: 'post',
        data: row
    })
}
export const deptList = () => {
    return request({
        url: '/api/blade-system/dept/list?size=-1',
    })
}
